﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uc_searchbox.ascx.cs"
    Inherits="TPCN.Controls.uc_searchbox" %>
<asp:TextBox ID="txtSearch" CssClass="searchinput" runat="server" onblur="if(this.value.length == 0) this.value='Tìm kiếm...';"
    onclick="if(this.value == 'Tìm kiếm...') this.value = '';">Tìm kiếm...</asp:TextBox>
<asp:Button ID="btnSubmit" runat="server" Text="" CssClass="searchbutton" 
    onclick="btnSubmit_Click" oninit="btnSubmit_Init" />
    <script type="text/javascript">
        function checkEmptyQuery(id) {
            var txt = document.getElementById(id);
            return (txt.value == 'Tìm kiếm...');
        }
    </script>